﻿using Basic.EventBus.Attributes;

namespace Basic.EventBus.Eventbus;

public interface IEventPublisher : IDisposable
{
    Task<bool> PublishAsync(byte[] data, EventTopicAttribute attribute);

    Task<bool> PublishAsync(IEventData eventData);

    Task<int> PublishAsync(List<IEventData> eventDatas);

}